<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jstl/core"  prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h2>List Form Outputs</h2>
<h3>your friends</h3>
Friends1:<bean:write name="listForm" property="friend[0]"/><br/>
Friends2:<bean:write name="listForm" property="friend[1]"/><br/>
Friends3:<bean:write name="listForm" property="friend[2]"/><br/>
<h3>your address</h3>
address1:${listForm.addresses[0]}<br/>
address2:${listForm.addresses[1]}<br/>
address3:${listForm.addresses[2]}<br/>
</body>
</html>